<?php

class Model_Table_Car
{
	private $car_id;
	private $car_history;
	private $make;
	private $model;
	private $year;
	private $Profile_profile_id;
	private $last_oil_change_date;
	
	//constructor
	public function __construct($carId, $carHistory, $make, $model, $year, $profileId, $lastOilChangeDate)
	{
		$this->car_id=$carId;
		$this->car_history=$carHistory;
		$this->make=$make;
		$this->model=$model;
		$this->year=$year;
		$this->Profile_profile_id=$profileId;
		$this->last_oil_change_date=$lastOilChangeDate;
	}
	
	
	//accessor and mutator
	public function getCarId()
	{
		return $this->car_id;
	}
	public function setCarId($carId)
	{
		$this->car_id=$carId;
	}
	
	public function getCarHistory()
	{
		return $this->car_history;
	}
	public function setCarHistory($carHistory)
	{
		$this->car_history=$carHistory;
	}
	
	public function getMake()
	{
		return $this->make;
	}
	public function setMake($make)
	{
		$this->make=$make;
	}
	
	public function getModel()
	{
		return $this->model;
	}
	public function setModel($model)
	{
		$this->model=$model;
	}
	
	public function getYear()
	{
		return $this->year;
	}
	public function setYear($year)
	{
		$this->year=$year;
	}
	
	public function getProfileId()
	{
		return $this->Profile_profile_id;
	}
	public function setProfileId($profileId)
	{
		$this->Profile_profile_id=$profileId;
	}
	
	public function getLastOilChangeDate()
	{
		return $this->last_oil_change_date;
	}
	public function setLastOilChangeDate($lastOilChangeDate)
	{
		$this->last_oil_change_date=$lastOilChangeDate;
	}
	
}
